package com.share.example.json2flat.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-05-08
 */
@Data
@Accessors(chain = true)
@TableName("jf_mapping_conf")
public class MappingConf implements Serializable{

    private static final long serialVersionUID=1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /** 消息源 */
    @TableField(value = "source_flag")
    private String sourceFlag;
    /** 处理方式 1是jsonpath，0是groovy */
    @TableField(value = "deal_way")
    private String dealWay;
    /** 路径 */
    @TableField(value = "json_path")
    private String jsonPath;
    /** groovy脚本 */
    @TableField(value = "groovy_scripy")
    private String groovyScripy;
    /** 目标表名字 */
    @TableField(value = "table_name")
    private String tableName;
    /** 字段名 */
    @TableField(value = "field_name")
    private String fieldName;
    /** 字段类型 */
    @TableField(value = "field_type")
    private String fieldType;
    /** 状态 */
    private String status;
    /** 创建时间 */
    @TableField(value = "create_time")
    private Date createTime;

}
